package myProj1Answer;

public class Player {
	private String name;
	private int currStrikes, gamesWon;
	public Player(String inName){
		this.name = inName;
		this.currStrikes = 0;
		this.gamesWon = 0;
	}
	public int getWins(){
		return this.gamesWon;
	}
	public int getStrikes(){
		return this.currStrikes;
	}
	public void incStrikes(){
		System.out.println(this.name+", you now have "+ ++this.currStrikes +" strikes");
	}
	public void reset(){
		this.currStrikes = 0;
	}
	public void won(){
		this.gamesWon++;
	}
	public String getName(){
		return this.name;
	}
}